<?php
$id=$_GET['id'];
$info = sel_sql($table, "*", "id=$id");
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>管理中心</title>
<link href="../css/style.css" rel="stylesheet" type="text/css">
<script language="javascript" type="text/javascript" src="../js/jquery.js"></script>
<script language="javascript" type="text/javascript">	
function openwinx(url,name,w,h)
{
    window.open(url,name,"top=100,left=400,width=" + w + ",height=" + h + ",toolbar=no,menubar=no,scrollbars=yes,resizable=no,location=no,status=no");
}
</script>
<script charset="utf-8" src="../../kindeditor/kindeditor.js"></script>
<script>
$(function() {
	var editor = KindEditor.create('#content');
});
</script>
<style type="text/css">
<!--
.STYLE1 {
	color: #FFFFFF;
	font-weight: bold;
	font-size:14px;
	text-decoration:none;
}
.STYLE2 {
	color: #555555;
	font-weight: bold;
	font-size:14px;
	text-decoration:none;
}
-->
</style>
</head>
<body topmargin="5" leftmargin="0">
<table width="98%" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td height="282" valign="top"><table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
      <tr>
        <td>
          <table cellspacing="0" width="100%" height="207" style="border:1px  solid #DCEAF7;">
            <tr>
              <td height="30" colspan="2" bgcolor="E9F2FB" class="bigtext"><strong>&nbsp;<img src="../images/arrow.gif" width="16" height="22" align="absmiddle" />发布</strong></td>
            </tr>
            <tr>
              <td width="100%" colspan="2" valign="top"><table width="100%" height="300" border="0" cellpadding="0" cellspacing="0">
                <tr>
                  <td valign="top"><form id="form1" name="form1" method="post" action="admin.php?act=save">
<table width="100%"  align="center" border=1 cellpadding=0 cellspacing=0 style="border-collapse: collapse" bordercolor="#dddddd">
                      <tr>
                        <td width="74" height="30" align="right" class="bigtext">类别：</td>
                        <td width="540" height="30" class="bigtext">&nbsp;<?=select($shai_cat_arr,"info[catid]",$info['catid'],$interval=10)?>
                        &nbsp;&nbsp;形式<?=select($xs_arr,"info[xs]",$info['xs'],$interval=10)?>
                        &nbsp;&nbsp;排序：<input name="info[sort]" type="text" style="width:30px"  id="sort" value="<?=$info['sort']?>"/>
                        &nbsp;&nbsp;会员：<?=$info['ddusername']?>
                        </td>
                      </tr>
                      <tr>
                        <td width="74" height="30" align="right" class="bigtext">商品名：</td>
                        <td width="540" height="30" class="bigtext">&nbsp;<input name="info[title]" type="text" size="60" id="url" value="<?=$info['title']?>"/> <a target="_blank" href="../../baobei.php?id=<?=$info['id']?>">查看</a>
                         </td>
                      </tr>
                      <tr>
                        <td width="74" height="30" align="right" class="bigtext">时间：</td>
                        <td width="540" height="30" class="bigtext">&nbsp;<?=date('Y-m-d H:i:s',$info['time'])?>
                        &nbsp;&nbsp;点击：<input name="info[hits]" type="text" style="width:30px"  id="hits" value="<?=$info['hits']?>"/>
                        &nbsp;&nbsp;红心：<input name="info[hart]" type="text" style="width:30px"  id="hart" value="<?=$info['hart']?>"/>
                        </td>
                      </tr>
                      <tr>
                        <td width="74" height="30" align="right" class="bigtext">图片：</td>
                        <td height="30">&nbsp;<input name="info[image]" id="pic" type="text" style="width:388px" maxlength="255" value="<?=$info['image']?>" /><input type="button" value="上传图片" onclick="javascript:openwinx('../upload_pic.php?uploadtext=pic','upload','450','350')" /></td>
                      </tr>
                      <tr>
                        <td width="74" height="30" align="right" class="bigtext">评论：</td>
                        <td width="540" height="30" class="bigtext">
                        <textarea id="content" name="info[comment]" style="width:643px;height:300px;visibility:hidden;">
                        <?=htmlspecialchars(str_replace('src="emoticons','src="../../emoticons',$info["comment"]))?>
                        </textarea>
                         </td>
                      </tr>
                      <tr>
                        <td height="30" align="right" class="bigtext">提交：</td>
                        <td height="30" ><input type="submit" value="提&nbsp;&nbsp;交" /></td>
                      </tr>

                    </table>
                    <input type="hidden" name="info[id]" value="<?=$info['id']?>"  />
                  </form>
                  </td>
                </tr>
              </table></td>
            </tr>
          </table></td>
        </tr>
      
    </table></td>
  </tr>
</table>
</body>
</html>
